package com.maduar.demo.netty.http.upload.util;

import io.netty.handler.codec.http.HttpResponseStatus;
import lombok.Data;

/**
 * Description:
 *
 * @author danny.pang danny.pang@ebizprise.com
 * @date 2020-03-10 15:20
 */
@Data
public class GeneralResponse {
    private transient HttpResponseStatus status = HttpResponseStatus.OK;
    private String message = "SUCCESS";
    private Object data;

    public GeneralResponse(Object data) {
        this.data = data;
    }

    public GeneralResponse(HttpResponseStatus status, String message, Object data) {
        this.status = status;
        this.message = message;
        this.data = data;
    }
}